package cn.dkk.structure_design.decorator.pojo;

/**
 * @author dkk
 * @date 2022/7/10
 * @desc 快餐抽象类
 */
public abstract class FastFood {

    private String desc;

    private double price;

    public abstract double cost();

    public FastFood(String desc, double price) {
        this.desc = desc;
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "FastFood{" +
                "desc='" + desc + '\'' +
                ", price=" + price +
                '}';
    }
}
